#include <QApplication>
#include <QWidget>
#include "mypushbutton.h"

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    // 创建自定义布局
    mypushbutton *layout = new mypushbutton("");

    // 创建主窗口对象
    QWidget window;
    window.setWindowTitle("画图");
    window.setWindowState(Qt::WindowMaximized);
    window.setLayout(layout->mainLayout);
    window.show();

    return app.exec();
}
